﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="mymessages.aspx.vb" Inherits="AssignmentProject.mymessages" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">

.messageContent {width: 600px;margin:0 auto;}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" runat="server">
    <p>
        <br />
        Message</p>
        <div class="messageContent">
    <p>
        <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" 
            GridLines="None">
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
            
            SelectCommand="SELECT [ID], [Title], [Member], [PostTime], [Message] FROM [UserMessages] WHERE ([ID] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="{0}" Name="ID" QueryStringField="ID" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <div>
    <asp:Button ID="Button1" runat="server" Text="Delete" />
    </div>
    </div>
    <p>
        Post A Reply</p>
    <p>
        <asp:TextBox ID="TextBox1" runat="server" Height="154px" Width="307px"></asp:TextBox>
        </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Button ID="Button2" runat="server" Text="Reply" />
        </p>
        <p>
        
    </p>
</asp:Content>
